﻿using System.ComponentModel;

namespace Noria.Web.Spider
{
    [RunInstaller(true)]
    public partial class MmInstaller : System.Configuration.Install.Installer
    {
        public MmInstaller()
        {
            InitializeComponent();
            InstallService();
        }

        private void InstallService()
        {
            this._service = new System.ServiceProcess.ServiceInstaller();
            this._installer = new System.ServiceProcess.ServiceProcessInstaller();
            // 
            // arsys
            // 
            this._service.Description = "Crawl MSDN data from Microsoft and other websites.";
            this._service.DisplayName = "MyMSDN Spider";
            this._service.ServiceName = "mmspider";
            this._service.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
            // 
            // arsysInstaller
            // 
            this._installer.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
            this._installer.Password = null;
            this._installer.Username = null;
            // 
            // TInstaller
            // 
            this.Installers.AddRange(new System.Configuration.Install.Installer[] {
            this._service,
            this._installer});
        }

        private System.ServiceProcess.ServiceInstaller _service;
        private System.ServiceProcess.ServiceProcessInstaller _installer;
    }
}
